<template>
	<view>
		<view class="page">
			<comp-common v-bind="{data:data}" @getUserInfo="getUserInfo" @myLogin="myLogin" @getPhoneNumber="getPhoneNumber" @hideGetCoupon="hideGetCoupon" @closeCouponBox="closeCouponBox" @navigatorClick="navigatorClick"></comp-common>
			<comp-header v-bind="{data:data}" @relevanceError="relevanceError" @relevanceSuccess="relevanceSuccess"></comp-header>
			<view class="body after-navber">
				<web-view :src="data.url"></web-view>
			</view>
			<comp-footer v-bind="{data:data}"></comp-footer>
		</view>
	</view>
</template>

<script>var myVue = {};
	export default {
		data() {
			return {
				data: {
        url: ""
    },
			};
		},
		onLoad: function(e) {myVue = this;
        myVue.getApp.page.onLoad(this, e), myVue.getApp.core.canIUse("web-view") ? this.setData({
            url: decodeURIComponent(e.url)
        }) : myVue.getApp.core.showModal({
            title: "提示",
            content: "您的版本过低，无法打开本页面，请升级至最新版。",
            showCancel: !1,
            success: function(e) {
                e.confirm && myVue.getApp.core.navigateBack({
                    delta: 1
                });
            }
        });
    },
    onReady: function(e) {
        myVue.getApp.page.onReady(this);
    },
    onShow: function(e) {
        myVue.getApp.page.onShow(this);
    },
    onHide: function(e) {
        myVue.getApp.page.onHide(this);
    },
    onUnload: function(e) {
        myVue.getApp.page.onUnload(this);
    },
    onShareAppMessage: function(e) {
        return myVue.getApp.page.onShareAppMessage(this), {
            path: "pages/web/web?url=" + encodeURIComponent(e.webViewUrl)
        };
    },
		methods: {
			
		},
	}
</script>

<style scoped>

</style>
